/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package cageballserver.physics;

import net.phys2d.raw.Body;

/**
 *
 * @author kanonas
 */
public class PlayerState {

    private Body body;
    private int id;
    private int team;
    private float destX;
    private float destY;
    private long lastKick;

    private float startX;
    private float startY;

    public PlayerState(Body body, int team, int id, float destX, float destY) {
        this.body = body;
        this.team = team;
        this.id = id;
        this.destX = destX;
        this.destY = destY;

        startX = destX;
        startY = destY;

        lastKick = Long.MIN_VALUE;
    }

    public Body getBody() {
        return body;
    }

    public void setBody(Body body) {
        this.body = body;
    }

    public float getDestX() {
        return destX;
    }

    public void setDestX(float destX) {
        this.destX = destX;
    }

    public float getDestY() {
        return destY;
    }

    public void setDestY(float destY) {
        this.destY = destY;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public long getLastKick() {
        return lastKick;
    }

    public void setLastKick(long lastKick) {
        this.lastKick = lastKick;
    }

    public float getStartX() {
        return startX;
    }

    public float getStartY() {
        return startY;
    }

    public int getTeam() {
        return team;
    }

    public void setTeam(int team) {
        this.team = team;
    }

    @Override
    public String toString() {
        return "Team: " + team + " Id: " + id;
    }


}
